package com.ikun.admin.modules.gen.vo;

import com.ikun.common.search.annotation.QueryUtil;
import com.ikun.common.search.enums.QueryModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName GenCodeConfigAddOrUpdateParamVo
 * @Description:
 * @CreateDate: 2024/4/16 0:48
 */
@ApiModel("新增或修改代码生成配置的vo")
@Data
public class CodeConfigCommonVo {
    private Long id;

    @ApiModelProperty("主键策略 0(自增) 1(无) 2(输入) 3(分配) 4(uuid)")
    @NotNull(message = "请选择主键策略")
    @QueryUtil(colName = "id_type")
    private Integer idType;

    @ApiModelProperty(value = "根目录,一般情况不填使用默认根目录")
    private String rootPath;

    @ApiModelProperty(value = "模块名需要跟表前缀一样")
    @NotNull(message = "模块名不能为空")
    @QueryUtil(colName = "module",queryMode = QueryModel.LIKE)
    private String module;


    @ApiModelProperty(value = "配置名称")
    @NotNull(message = "配置名称不能为空")
    @QueryUtil(colName = "config_name",queryMode = QueryModel.LIKE)
    private String configName;
}
